package com.itheima.output;

import java.io.FileInputStream;
import java.io.IOException;

public class OutputDemo8 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("ByteStream\\a.txt");
        /*while (true) {
            int i1 = fis.read();
            System.out.println((char)i1);
        }*/
        int b;
        while ((b = fis.read()) != -1) {
            System.out.println((char)b);
        }

        fis.close();
    }
}
